package com.learn.training.logger.commonLogger;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

//在实例方法中引入Log
public class Person {
    protected final Log log = LogFactory.getLog(getClass());
    void sayHello() {log.info("hello world");}
}
